home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group96b.txt
/
000039_icon-group-sender _Mon Oct 21 08:27:33 1996.msg
< prev
next >
Wrap
Internet Message Format
|
1997-01-02
|
2KB
Received: by cheltenham.cs.arizona.edu; Mon, 21 Oct 1996 10:19:52 MST
Message-Id: <s26b3503.068@wise.net>
X-Mailer: Novell GroupWise 4.1
Date: Mon, 21 Oct 1996 08:27:33 -0600
From: Charlie Hethcoat <CHETHCOA@oss.oceaneering.com>
Cc: icon-group@cs.arizona.edu
Subject: Saving Records, Lists, etc. to disk -Reply
Encoding: 35 Text
Errors-To: icon-group-errors@cs.arizona.edu
(For distribution to the Icon group.)
Let me second that question! I have been using Icon to experiment with interactive
calculator programs of various types. I have often wanted to save a ''workspace'' (a la APL),
which is a snapshot of my session with variables, binary data structures, and various flag
settings intact. That way, I would be able to put a ''save'' instruction or command in my
program's repertoire, and use it to drop what I'm working on the moment someone runs in and
says ''Pizza!!''--secure in the knowledge that I can ''resume'' that session later.
There are ''images'' of icon data structures, but they are strings. That might work, but I sort of
doubt they were implemented for that purpose. And they put a hit on your string storage
region. I haven't tried them for that purpose, because it seems there must be a better way.
There is also the ''save'' function, which saves an executable image of the program containing
the call. This seems to be similar to what is needed, but is only for re-running a program from
scratch, and facility is only available to the Icon interpreter, not to the Icon programmer.
Charlie Hethcoat chethcoa@oss.oceaneering.com
>>> "Lloyd M. Uhler, Jr." <luhler@khis.kodak.com> 1996 Oct 17, 06:21am >>>
Is it possible to save one of advanced data types
such as Record, List, Table, Set, ... to disk?
Then in another session, read this back in to an
Icon program.
For the tree structure illustrated on pages
189-192,it is possible to convert this to a string.
What I am looking for is disk storage of the
structure in its "native" form and then later
access to this structure. It would seem this would
be a good feature for Icon.